From f064d42ef8af59f9ae7378fe5b0ec8dd7f2a40ca Mon Sep 17 00:00:00 2001 From: "kfraser@localhost.localdomain" Date: Fri, 9 Mar 2007 09:21:31 +0000 Subject: [PATCH] pci back: Fix registration of of filters on subsections of config space. Found by Jambanuthan K. Signed-off-by: Keir Fraser --- linux-2.6-xen-sparse/drivers/xen/pciback/conf_space.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-2.6-xen-sparse/drivers/xen/pciback/conf_space.c b/linux-2.6-xen-sparse/drivers/xen/pciback/conf_space.c index 9eee88cd07..14e69adeec 100644 --- a/linux-2.6-xen-sparse/drivers/xen/pciback/conf_space.c +++ b/linux-2.6-xen-sparse/drivers/xen/pciback/conf_space.c @@ -357,7 +357,7 @@ int pciback_config_add_field_offset(struct pci_dev *dev, void *tmp; /* silently ignore duplicate fields */ - if (pciback_field_is_dup(dev, field->offset)) + if (pciback_field_is_dup(dev, field->offset + offset)) goto out; cfg_entry = kmalloc(sizeof(*cfg_entry), GFP_KERNEL); -- 2.30.2